package pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */
public class User implements java.io.Serializable {

    // Fields
    private String unikey;
    private String name;
    private Image image;
    private Securityquestion securityquestion;
    private Role role;
    private String password;
    private Date dateOfBirth;
    private String email;
    private Integer points;
    private Integer gender;
    private String description;
    private String faculty;
    private Set exchangehistories = new HashSet(0);
    private Set pointdispatchhistories = new HashSet(0);
    private Set replies = new HashSet(0);
    private Set threads = new HashSet(0);
    private Set categories = new HashSet(0);
    private Set nicknames = new HashSet(0);
    private Set tickets = new HashSet(0);
    private Set winningdraws = new HashSet(0);

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set getWinningdraws() {
        return winningdraws;
    }

    public void setWinningdraws(Set winningdraws) {
        this.winningdraws = winningdraws;
    }

    public Set getTickets() {
        return tickets;
    }

    public void setTickets(Set tickets) {
        this.tickets = tickets;
    }

    // Constructors
    /** default constructor */
    public User() {
    }

    /** minimal constructor */
    public User(String unikey, Role role, String password, Integer points) {
        this.unikey = unikey;
        this.role = role;
        this.password = password;
        this.points = points;
    }

    /** full constructor */
    public User(String unikey, Image image, Securityquestion securityquestion,
            Role role, String password, Date dateOfBirth, String email,
            Integer points, Integer gender, String description, String faculty,
            Set exchangehistories, Set pointdispatchhistories, Set replies,
            Set threads, Set categories, Set nicknames) {
        this.unikey = unikey;
        this.image = image;
        this.securityquestion = securityquestion;
        this.role = role;
        this.password = password;
        this.dateOfBirth = dateOfBirth;
        this.email = email;
        this.points = points;
        this.gender = gender;
        this.description = description;
        this.faculty = faculty;
        this.exchangehistories = exchangehistories;
        this.pointdispatchhistories = pointdispatchhistories;
        this.replies = replies;
        this.threads = threads;
        this.categories = categories;
        this.nicknames = nicknames;
    }

    // Property accessors
    public String getUnikey() {
        return this.unikey;
    }

    public void setUnikey(String unikey) {
        this.unikey = unikey;
    }

    public Image getImage() {
        return this.image;
    }

    public void setImage(Image image) {
        this.image = image;
    }

    public Securityquestion getSecurityquestion() {
        return this.securityquestion;
    }

    public void setSecurityquestion(Securityquestion securityquestion) {
        this.securityquestion = securityquestion;
    }

    public Role getRole() {
        return this.role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getDateOfBirth() {
        return this.dateOfBirth;
    }

    public void setDateOfBirth(Date dateOfBirth) {
        this.dateOfBirth = dateOfBirth;
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getPoints() {
        return this.points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public Integer getGender() {
        return this.gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getFaculty() {
        return this.faculty;
    }

    public void setFaculty(String faculty) {
        this.faculty = faculty;
    }

    public Set getExchangehistories() {
        return this.exchangehistories;
    }

    public void setExchangehistories(Set exchangehistories) {
        this.exchangehistories = exchangehistories;
    }

    public Set getPointdispatchhistories() {
        return this.pointdispatchhistories;
    }

    public void setPointdispatchhistories(Set pointdispatchhistories) {
        this.pointdispatchhistories = pointdispatchhistories;
    }

    public Set getReplies() {
        return this.replies;
    }

    public void setReplies(Set replies) {
        this.replies = replies;
    }

    public Set getThreads() {
        return this.threads;
    }

    public void setThreads(Set threads) {
        this.threads = threads;
    }

    public Set getCategories() {
        return this.categories;
    }

    public void setCategories(Set categories) {
        this.categories = categories;
    }

    public Set getNicknames() {
        return this.nicknames;
    }

    public void setNicknames(Set nicknames) {
        this.nicknames = nicknames;
    }
}